package group2assignone.ucm.customer;

import group2assignone.ucm.UCController;
import group2assignone.view.OurView;
import group2assignone.view.customer.CustomerCreateView;

/**
 * use case to show the 'create customer' view
 * @author group2
 */
public class UCUICustomerRegister implements UCController {

    private OurView view;

    /**
     * assigns the view
     * @param view
     */
    public UCUICustomerRegister(OurView view) {
        this.view = view;
    }

    /**
     * Use Case: Change UI to Create Account View
     * 1. system shows the create account UI 
     * 2. system exits current view
     */
    public void run() {
        CustomerCreateView gui = new CustomerCreateView();
        gui.go();
        view.dispose();
    }
}
